

package com.suzj.extraenchantments.enchant.Ench_02;

import com.suzj.extraenchantments.Config;

import net.minecraft.ChatFormatting;
import net.minecraft.network.chat.Component;
import net.minecraft.world.entity.EquipmentSlot;
import net.minecraft.world.item.enchantment.Enchantment;
import net.minecraft.world.item.enchantment.EnchantmentCategory;


public class EnchantmentCataclysmicVariableStar extends Enchantment {
    public EnchantmentCataclysmicVariableStar() {
        super(Rarity.VERY_RARE, EnchantmentCategory.WEAPON,  new EquipmentSlot[]{EquipmentSlot.MAINHAND});
    }

    public int getMaxLevel() {
        return (Boolean)Config.SERVER.isCataclysmicVariableStar.get() ? 1 : 0;
    }

    public int getMinCost(int p_77321_1_) {
        return 30;
    }

    public int getMaxCost(int p_223551_1_) {
        return 50;
    }

    @Override
    public Component getFullname(int pLevel) {
        return super.getFullname(pLevel).copy().withStyle(ChatFormatting.BOLD);
    }
}
